let headerApp = new Vue({
    el:"#headerApp",
    data:{
        isfullScreen:true,
    },
    methods:{
        // 进入锁屏页面
        lockScreen:function () {
            location.href="lock_screen.html";
        },
        // 进入全屏状态
        fullScreen:function () {
            var element = document.documentElement; //若要全屏页面中div，var element= document.getElementById("divID");
            //IE 10及以下ActiveXObject
            if (window.ActiveXObject) {
                var WsShell = new ActiveXObject('WScript.Shell')
                WsShell.SendKeys('{F11}');
            }
            //HTML W3C 提议
            else if (element.requestFullScreen) {
                element.requestFullScreen();
            }
            //IE11
            else if (element.msRequestFullscreen) {
                element.msRequestFullscreen();
            }
            // Webkit (works in Safari5.1 and Chrome 15)
            else if (element.webkitRequestFullScreen) {
                element.webkitRequestFullScreen();
            }
            // Firefox (works in nightly)
            else if (element.mozRequestFullScreen) {
                element.mozRequestFullScreen();
            }
            this.isfullScreen=false
        },
        // 退出全屏状态
        fullExit:function () {
            var element = document.documentElement; //若要全屏页面中div，var element= document.getElementById("divID");
            //IE ActiveXObject
            if (window.ActiveXObject) {
                var WsShell = new ActiveXObject('WScript.Shell')
                WsShell.SendKeys('{F11}');
            }
            //HTML5 W3C 提议
            else if (element.requestFullScreen) {
                document.exitFullscreen();
            }
            //IE 11
            else if (element.msRequestFullscreen) {
                document.msExitFullscreen();
            }
            // Webkit (works in Safari5.1 and Chrome 15)
            else if (element.webkitRequestFullScreen) {
                document.webkitCancelFullScreen();
            }
            // Firefox (works in nightly)
            else if (element.mozRequestFullScreen) {
                document.mozCancelFullScreen();
            }
            this.isfullScreen=true
        },

    },
})